package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.TrainingBase;
import com.ruoyi.system.domain.TrainingCadetTeacherNotesCount;
import com.ruoyi.system.domain.TrainingMedicalRecord;
import com.ruoyi.system.domain.TrainingMedicalRecordCount;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 临床医案Service接口
 * 
 * @author dp
 * @date 2023-11-27
 */
public interface ITrainingMedicalRecordService 
{
    /**
     * 查询临床医案
     * 
     * @param medicalRecordId 临床医案主键
     * @return 临床医案
     */
    public TrainingMedicalRecord selectTrainingMedicalRecordByMedicalRecordId(Long medicalRecordId);

    /**
     * 查询临床医案列表
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 临床医案集合
     */
    public List<TrainingMedicalRecord> selectTrainingMedicalRecordList(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 根据条件查询跟师笔记列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param cadetId
     * @param RecordStatus
     * @return
     */
    public List<TrainingMedicalRecord> getRecordList(String submitBegin, String submitEnd, String baseId, String cadetId, String RecordStatus);

    /**
     * 根据条件查询跟师笔记合计
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param RecordStatus
     * @return
     */
    public List<TrainingMedicalRecordCount> selectTrainingMedicalRecordCount(
            String submitBegin, String submitEnd, String baseId, String RecordStatus, Long cadetId, String cadetName);

    /**
     * 新增临床医案
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 结果
     */
    public int insertTrainingMedicalRecord(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 修改临床医案
     * 
     * @param trainingMedicalRecord 临床医案
     * @return 结果
     */
    public int updateTrainingMedicalRecord(TrainingMedicalRecord trainingMedicalRecord);

    /**
     * 批量删除临床医案
     * 
     * @param medicalRecordIds 需要删除的临床医案主键集合
     * @return 结果
     */
    public int deleteTrainingMedicalRecordByMedicalRecordIds(Long[] medicalRecordIds);

    /**
     * 删除临床医案信息
     * 
     * @param medicalRecordId 临床医案主键
     * @return 结果
     */
    public int deleteTrainingMedicalRecordByMedicalRecordId(Long medicalRecordId);

    /**
     * 实体数据补全
     *
     * @param trainingMedicalRecord 实体
     * @param userId       用户id
     * @param crateType    创建类型 1：新增 2：修改
     */
    public void completeData(TrainingMedicalRecord trainingMedicalRecord, Long userId, Integer crateType);
}
